﻿using Abp.Application.Services.Dto;
using SingleUserMall.Common;
using SingleUserMall.Refunds.Form;
using SingleUserMall.Refunds.VO;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Refunds
{
    /// <summary>
    /// 退货
    /// </summary>
    [Description("退货")]
    public interface IRefundAppService:IAppService
    {
        /// <summary>
        /// 获取退款商品信息
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<OrderDetailMiniVO> GetRefundItemAsync(OrderDetailForm form);
        /// <summary>
        /// 申请退款
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<RefundVO> RefundAsync(RefundForm form);
        /// <summary>
        /// 撤销退款
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task CancelRefundAsync(SingleId<long> form);
        /// <summary>
        /// 查看退款情况
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<RefundVO> GetRefundInfoAsync(OrderDetailForm form);
        /// <summary>
        /// 根据退款id获取退款协商记录
        /// </summary>
        /// <param name="form"></param>
        /// <returns></returns>
        Task<ListResultDto<RefundLogVO>> GetRefundLogsAsync(SingleId<long> form);
    }
}
